-- GENERATED SPELL FOR [Bane] --


function spell0_25655(pUnit, Event) --@Chains of Anguish,n/a--
pUnit:FullCastSpellOnTarget(45788,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25655', 654, 1)
end

function spell1_25655(pUnit, Event) --@Fool\'s Bane,Self--
pUnit:FullCastSpellOnTarget(50332,pUnit)
pUnit:RegisterEvent('Sorts_25655', 10262, 1)
end

function Sorts_25655(pUnit, Event)
local choix_sorts_25655 = math.random(0, 1)
if choix_sorts_25655 == 0 then
pUnit:RegisterEvent('spell0_25655', 1, 1)
end
if choix_sorts_25655 == 1 then
pUnit:RegisterEvent('spell1_25655', 1, 1)
end
end

function mob25655_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25655', math.random(1500, 3000), 1)
end

function mob25655_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25655_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25655_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25655, 1, 'mob25655_Action')
RegisterUnitEvent(25655, 2, 'mob25655_Leave')
RegisterUnitEvent(25655, 3, 'mob25655_Kill')
RegisterUnitEvent(25655, 4, 'mob25655_Die')
